<template>
  <div id="enterprise-information">
    <c-title text="企业信息"></c-title>
    <div class="desc-pane">
      <div class="enterprise-name">{{detailData.realname}}</div>
      <div class="area-fan">
        <span class="area-name">经营范围</span>
        <span class="area-content">{{detailData.detail_info ? detailData.detail_info.corp_business_scope : ""}}</span>
      </div>
      <div class="address">
        <img src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/anytime_service/icon_local (1).png" alt="" class="img-icon">
        <span>{{detailData.detail_info ? detailData.detail_info.corp_address : ""}}</span>
      </div>
      <div class="mobile">
        <van-icon name="phone-o" class="phone-icon"/>
        <span>{{detailData.mobile}}</span>
        <span class="mobile-name">({{detailData.detail_info ? detailData.detail_info.corp_contact : ""}})</span>
      </div>
    </div>
    <div class="introduction-pane">
      <div class="introduction-name">简介</div>
      <div class="introduction-content">{{detailData.detail_info ? detailData.detail_info.introduce : ""}}</div>
      <div class="introduction-name">营业执照</div>
      <div class="license-pane">
        <img :src="detailData.annex_file ? detailData.annex_file.corp_license_url : ''" alt="" class="license-img">
      </div>
      <div class="introduction-name">公司照片</div>
      <div class="license-pane" v-if="detailData.annex_file">
        <img :src="item" alt="" class="license-img" v-for="(item,index) in detailData.annex_file.corp_image_url" :key="index">
      </div>
    </div>
  </div>
</template>
<script>
import enterprise_information_controller from "./enterprise_information_controller";

export default enterprise_information_controller;
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
#enterprise-information {
  .desc-pane {
    background: white;
    padding: 0.6rem 0.6rem 0.65rem 0.6rem;

    .enterprise-name {
      font-size: 0.85rem;
      font-weight: 400;
      color: #333;
      margin-bottom: 0.8rem;
      text-align: left;
    }

    .area-fan {
      display: flex;
      align-items: center;

      .area-name {
        font-size: 0.75rem;
        font-weight: 400;
        color: #999;
      }

      .area-content {
        background: #ffeedf;
        border-radius: 0.1rem 0.1rem 0.1rem 0.1rem;
        font-size: 0.75rem;
        font-weight: 400;
        color: #ff9c43;
        padding: 0.2rem 0.3rem;
        margin-left: 0.3rem;
      }
    }

    .address {
      font-size: 0.75rem;
      font-weight: 400;
      color: #999;
      margin: 0.43rem 0;
      text-align: left;
      display: flex;
      align-items: center;
    }

    .mobile {
      font-size: 0.75rem;
      font-weight: 400;
      color: #999;
      text-align: left;

      .mobile-name {
        margin-left: 0.825rem;
      }
    }
  }

  .introduction-pane {
    background: white;
    padding: 0.6rem;

    .introduction-name {
      font-size: 0.85rem;
      font-weight: 400;
      color: #333;
      text-align: left;
    }

    .introduction-content {
      font-size: 0.75rem;
      font-weight: 400;
      color: #999;
      margin: 0.6rem 0 0.8rem 0;
      text-align: left;
    }

    .license-pane {
      margin: 0.6rem 0 0 0;
      display: flex;
      flex-wrap: wrap;

      .license-img {
        width: 8.475rem;
        height: 8.475rem;
        border-radius: 0.2rem 0.2rem 0.2rem 0.2rem;
        margin: 0 0.6rem 0.8rem 0;
      }
    }
  }

  .img-icon {
    width: 0.85rem !important;
    height: 0.85rem !important;
    margin: 0 0.2rem 0 0;
  }

  .phone-icon {
    font-size: 0.85rem;
    margin-right: 0.2rem;
  }
}
</style>
